package LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-05-10
 * Time: 15:14
 */
public class Test {

    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.addLast(5);
        list.display();
        System.out.println(" ============= ");
        list.removeAllKey(5);
        list.display();
    }

    public static void main1(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.remove(1);
        list.remove(2);
        list.remove(3);
        list.remove(4);
        list.remove(5);

        list.display();
    }

}
